//
//  ZBPresentView.h
//  礼物连击
//
//  Created by 华惠友 on 2017/9/13.
//  Copyright © 2017年 华惠友. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZBShakeLabel.h"
#import "ZBGiftModel.h"

typedef void(^completeBlock)(BOOL finished, NSInteger giftCount);

@interface ZBPresentView : UIView

@property(nonatomic, strong) ZBGiftModel *model;

@property(nonatomic, strong) UIImageView *headImageView; // 头像
@property(nonatomic, strong) UIImageView *giftImageView; // 礼物
@property(nonatomic, strong) UILabel *nameLabel; // 送礼物者
@property(nonatomic, strong) UILabel *giftLabel; // 礼物名称
@property(nonatomic, strong) ZBShakeLabel *skLabel;

@property(nonatomic, assign) NSInteger giftCount; // 礼物个数
@property(nonatomic, assign) NSInteger animationCount; // 执行动画个数

@property(nonatomic, assign) CGRect originFrame; // 记录原始坐标

@property(nonatomic, assign, getter=isFinished) BOOL finished;

- (void)animateWithCompleteBlock:(completeBlock)completed;

- (void)shakeNumberLabel;
- (void)removeShakeLabel;
@end
